package com.water.app.Exceptions;

import java.util.Map;

public class StockException extends Exception{
    private Map<Integer,Integer> errorMap;

    public StockException(){super();}

    public StockException(String msg){super(msg);}

    public StockException(String msg,Throwable throwable){super(msg,throwable);}

    public StockException(Throwable throwable){super(throwable);}

    public StockException(String msg,Throwable throwable,Map<Integer,Integer> errorMap){
        super(msg,throwable);
        this.errorMap=errorMap;
    }

    public StockException(String msg, Map<Integer, Integer> errorMap) {
        super(msg);
        this.errorMap=errorMap;
    }

    public Map<Integer,Integer> getErrorMap(){return this.errorMap;}
}
